home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
LCLINT2.SPK
/
test
/
test_a
/
db2
/
c
/
etest
< prev
Wrap
Text File
|
1996-08-28
|
846b
|
50 lines
# include <stdio.h>
# include <stdlib.h>
# include "eref.h"
eref_ERP eref_Pool; /* private */
static bool needsInit = TRUE; /* private */
void eref_initMod (void)
{
int i;
const int size = 16;
if (!needsInit)
{
return;
}
needsInit = FALSE;
bool_initMod ();
employee_initMod ();
eref_Pool.conts = (employee *) malloc (size * sizeof (employee));
if (eref_Pool.conts == 0)
{
printf ("Malloc returned null in eref_initMod\n");
exit (EXIT_FAILURE);
}
eref_Pool.status = (eref_status *) malloc (size * sizeof (eref_status));
if (eref_Pool.status == 0)
{
printf ("Malloc returned null in eref_initMod\n");
exit (EXIT_FAILURE);
}
eref_Pool.size = size;
if (size > 3)
{
eref_Pool.status[0] = avail;
}
else
{
;
}
}